package cn.stard.org.domain;

import cn.stard.basic.domain.BaseDomain;
import cn.stard.system.domain.EmployeeRole;
import cn.stard.system.domain.Role;
import lombok.Data;

import java.util.List;

@Data
public class Employee extends BaseDomain {

  // 员工名称
  private String username;
  // 员工电话
  private String phone;
  // 员工邮箱
  private String email;
  // 员工密码盐值
  private String salt;
  // 加密后的密码
  private String password;
  // 员工年龄
  private Integer age;
  // 状态：1启用，0禁用
  private Integer state;
  // 所属部门Id
  private Long departmentId;
  // 登录表的主键
  private Long logininfoId;
  // 所属店铺Id
  private Long shopId;

  // 员工二次密码字段
  private String comfirmPassword;
 private DePartment partments;
 private  EmployeeRole employeeRole;
private Role role;
 // 设置对应的角色字段
  private List<Long>roles;

}
